Just as we animate the apps launch using the zoom out animation if the
'new-window' action provided by the app is launched, we should also show
this animation if the 'activate-discrete-gpu' action provided by the app
via its AppInfo is launched.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/673
let action = actions[i];
let item = this._appendMenuItem(appInfo.get_action_name(action));
item.connect('activate', (emitter, event) => {
- if (action == 'new-window')
+ if (action == 'new-window' ||
+ action == 'activate-discrete-gpu')
this._source.animateLaunch();
this._source.app.launch_action(action, event.get_time(), -1);